UCF STIG Viewer Logo

TOSS must reveal error messages only to authorized users.


Overview

Finding ID Version Rule ID IA Controls Severity
V-252955 TOSS-04-020150 SV-252955r824189_rule Medium
Description
Only authorized personnel should be aware of errors and the details of the errors. Error messages are an indicator of an organization's operational state or can identify the operating system or platform. Additionally, Personally Identifiable Information (PII) and operational information must not be revealed through error messages to unauthorized personnel or their designated representatives. The structure and content of error messages must be carefully considered by the organization and development team. The extent to which the information system is able to identify and handle error conditions is guided by organizational policy and operational requirements.
STIG Date
Tri-Lab Operating System Stack (TOSS) 4 Security Technical Implementation Guide 2022-08-29

Details

Check Text ( C-56408r824187_chk )
Verify the "/var/log/messages" file has a mode of "0640" or less permissive and is owned by the root user with the following command:

$ sudo ls -l /var/log/messages
-rw-r----- 1 root root 59782947 Jul 20 01:36 /var/log/messages

If the "/var/log/messages" file has a mode more permissive than "0640", this is a finding.
If the "/var/log/messages" file is not owned by "root", this is a finding.

Verify the "/var/log" directory has a mode of "0755" or less permissive and is owned by the root user with the following command:

$ sudo ls -ld /var/log/
drwxr-xr-x 1 root root 1200 Jul 19 03:39 /var/log

If the "/var/log/" directory has a mode more permissive than "0755", this is a finding.
If the "/var/log/" directory is not owned by "root", this is a finding.
Fix Text (F-56358r824188_fix)
Change the permissions of the file "/var/log/messages" to "0640" and the ownership of the file to "root" by running the following commands:

$ sudo chmod 0640 /var/log/messages
$ sudo chown root /var/log/messages

Change the permissions of the directory "/var/log/" to "0755" and the ownership of the directory to "root" by running the following commands:

$ sudo chmod 0755 /var/log/
$ sudo chown root /var/log/